package com.erlang.redisspringbootautoconfigure.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by IntelliJ IDEA.
 *
 * @author ZGQ
 */
@ConfigurationProperties(prefix = "myself")
public class RedisProperties {

    /* 服务器地址 */
    private String host = "localhost";
    /* 服务器对外暴露的端口 */
    private int port = 6379;


    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
